<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>声明式渲染</title>
</head>

<body>
    <div id="app">
        <h2>{{ message }}</h2>
        <span v-html="message"></span>
        <div v-bind:title='tet'>{{message}}</div>
        <div v-if="show">能够看见吗？</div>
        <li v-for="todo in zip">{{todo.text}}</li>

    </div>


    <script src="../libs/Vue.min.js"></script>
    <script>
        let app = new Vue({
            el: '#app',
            data: {
                message: '<h1>hello</h1>',
                tet: 'I am here!',
                show: true,
                zip: [{
                        text: 'wyj'
                    }, {
                        text: 'zxc'
                    }, {
                        text: 'hhh'
                    }, {
                        text: 'lala'
                    },

                ]
            }
        })
    </script>
</body>

</html>